#ifndef H_Faces
#define H_Faces

#include <iostream>
#include <vector>
#include "point.h"

using namespace std;
 

class Face{
  Point *u , *v ,*w;
  Point barycenter;

 public:
  Face(Point *_u , Point *_v, Point *_w){
    u = _u; v = _v; w =_w;
    barycenter.setX((u->getX()+v->getX() + w->getX())/3.);
    barycenter.setY((u->getY()+v->getY() + w->getY())/3.);
    barycenter.setZ((u->getZ()+v->getZ() + w->getZ())/3.);
  }

  Point getBarycenter(){
    return barycenter;
  }

  void print(){
    cout <<  "u : ";
    u->print();
    cout <<  " / v : ";
    v->print();
    cout <<  " / w : ";
    w->print();
    cout << endl;
  }


};
#endif
